package com.benlai.newretail.dao.impl;

import com.benlai.newretail.config.dbconfig.TargetDataSource;
import com.benlai.newretail.dao.IModuleData;
import com.benlai.newretail.dao.mapper.ModuleMapper;
import com.benlai.newretail.entity.Module;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author:gaoxu;
 * @Email:gaoxu@benlai.com
 * @DATE:2017-12-07
 * @version:ver1.0.0
 * @Description: Created by gaoxu on 2017-12-07.
 */

@Repository
public class ModuleDateImpl implements IModuleData {

    @Autowired
    private ModuleMapper moduleMapper;

    /**
     * 返回多个对象
     *
     * @param id
     * @param moduleId
     * @return
     */
    @Override
    public Module getModuleById(String id, String moduleId) {
        return moduleMapper.getModuleById(id,moduleId);
    }
}
